/*
 * @Date: 2019-12-2
 * @Author: xuechengwu <xuechengwu@erayt.com>
 * @Description: 基础层，用于业务层的继承
 */
import Layer from '../core/Layer';

export default class BaseLayer extends Layer {
    constructor(canvas) {
        super(canvas);
    }

    /**
     * 设置Maked回调函数
     * @param makedCallback
     */
    setOnMaked(makedCallback) {
        this.onMaked = makedCallback;
    }

    /**
     * 设置Make前的回调函数
     * @param beforeMakeCallback
     */
    setOnBeforeMake(beforeMakeCallback) {
        this.onBeforeMake = beforeMakeCallback;
    }

    /**
     * 用于被继承
     */
    make() {
        return;
    }
}
